﻿using UnityEngine;
using UnityEngine.UIElements;

namespace winS.UnityEditor.UIElement
{
    /// <summary>
    /// Label.
    /// </summary>
    public class Label : TextElement
    {
        internal Label()
        {
            style.minWidth = 0f;
            style.flexShrink = 0f;
            style.minHeight = EditorElementUtility.elementMinHeight;
            style.whiteSpace = WhiteSpace.NoWrap;
            style.SetUnityFontDefinition(PackageAssets.FontSet.microsoftYahei);

            style.unityTextAlign = TextAnchor.MiddleLeft;
            style.overflow = Overflow.Hidden;
        }
    }
}